package com.dianping.cat.consumer.cross.model.entity;

import com.dianping.cat.consumer.cross.model.BaseEntity;
import com.dianping.cat.consumer.cross.model.IVisitor;










public class Name
  extends BaseEntity<Name>
{
  private String m_id;
  private long m_totalCount;
  private int m_failCount;
  private double m_failPercent;
  private double m_avg;
  private double m_sum;
  private double m_tps;

  public Name() {}

/*  28 */   public Name(String id) { this.m_id = id; }




/*  33 */   public void accept(IVisitor visitor) { visitor.visitName(this); }



  public boolean equals(Object obj) {
/*  38 */     if (obj instanceof Name) {
/*  39 */       Name _o = (Name)obj;

/*  41 */       if (!equals(getId(), _o.getId())) {
/*  42 */         return false;
      }

/*  45 */       return true;
    }

/*  48 */     return false;
  }


/*  52 */   public double getAvg() { return this.m_avg; }



/*  56 */   public int getFailCount() { return this.m_failCount; }



/*  60 */   public double getFailPercent() { return this.m_failPercent; }



/*  64 */   public String getId() { return this.m_id; }



/*  68 */   public double getSum() { return this.m_sum; }



/*  72 */   public long getTotalCount() { return this.m_totalCount; }



/*  76 */   public double getTps() { return this.m_tps; }



  public Name incFailCount() {
/*  89 */     this.m_failCount++;
/*  90 */     return this;
  }

  public Name incFailCount(int failCount) {
/*  94 */     this.m_failCount += failCount;
/*  95 */     return this;
  }

  public Name incTotalCount() {
/*  99 */     this.m_totalCount++;
/* 100 */     return this;
  }

  public Name incTotalCount(long totalCount) {
/* 104 */     this.m_totalCount += totalCount;
/* 105 */     return this;
  }


  public void mergeAttributes(Name other) {
/* 110 */     assertAttributeEquals(other, "name", "id", this.m_id, other.getId());

/* 112 */     this.m_totalCount = other.getTotalCount();

/* 114 */     this.m_failCount = other.getFailCount();

/* 116 */     this.m_failPercent = other.getFailPercent();

/* 118 */     this.m_avg = other.getAvg();

/* 120 */     this.m_sum = other.getSum();

/* 122 */     this.m_tps = other.getTps();
  }

  public Name setAvg(double avg) {
/* 126 */     this.m_avg = avg;
/* 127 */     return this;
  }

  public Name setFailCount(int failCount) {
/* 131 */     this.m_failCount = failCount;
/* 132 */     return this;
  }

  public Name setFailPercent(double failPercent) {
/* 136 */     this.m_failPercent = failPercent;
/* 137 */     return this;
  }

  public Name setId(String id) {
/* 141 */     this.m_id = id;
/* 142 */     return this;
  }

  public Name setSum(double sum) {
/* 146 */     this.m_sum = sum;
/* 147 */     return this;
  }

  public Name setTotalCount(long totalCount) {
/* 151 */     this.m_totalCount = totalCount;
/* 152 */     return this;
  }

  public Name setTps(double tps) {
/* 156 */     this.m_tps = tps;
/* 157 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-consumer-3.0.0.jar!/com/dianping/cat/consumer/cross/model/entity/Name.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */